# coding=utf8

class Preliminary:

    @staticmethod
    def use_git():
        """
        install address: https://git-scm.com/download
        install choice:
        config:
            mode:git bash($), git cmd(>), git gui
            command:
            $ git -config --global user.name <user_name>
            $ git -config --global user.email <email_name@xxx.xx>
        init repository:
            $ mkdir mydir
            $ cd mydir
            $ git init
            $ echo ... > mycode1.py
            $ git add mycode1.py
            $ git commit -m "first commit"
            $ git log
        """

    @staticmethod
    def link_remote_repository():
        """
        link local repository to remote repository:
            create rsa key:
            create remote repository:
            link local to remote repository:
            (1) link created local repository
            (2) clone remote repository
        """


def task():
    """
    link local repository mydir to remote repository in gitee
    > md mydir
    > cd mydir
    > git init
    > edit test.py
    > git add test.py
    > git commit -m "first commit"
    > git log
    """


def expand_train():
    """

    """


if __name__ == '__main__':
    help(Preliminary.use_git)
